<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <link rel='stylesheet' href='/stylesheets/style.css' />
  </head>
  <body>
    <p>Welcome to <%= title %></p>
    	<ul>
    		<% if (categories){ %>
	    	<% for (var i in categories) { %>
				<li><a href='/?categoryid=<%= categories[i]._id %>'><%= categories[i].title %></a></li>
			<% } %>
			<% } %>
		</ul>
  </body>
   	<a href="/category/add" title='新建分类'>
   		<img src="/images/plus_2.png"/>新建分类
   	</a>
   	<a href='/' title='点击返回'>
   		<img src="/images/back.png"/>点击返回
	</a>
</html>